/*
 * CopyRight(C) Kenbin
 */

#ifndef LWS_SEGGER_INCLUDED
#define LWS_SEGGER_INCLUDED

#define LWS_UPPER_TO_LOWER  1
#define LWS_GB_TO_ASCII     2
#define LWS_ATOM_RECOG      4
#define LWS_PERSON_RECOG    8
#define LWS_SPLIT_CN_PERSON 16
#define LWS_LOCATION_RECOG  32
#define LWS_NUMTIME_RECOG   64
#define LWS_POSTAG          128

namespace LWS {

    extern "C" bool lws_init(const char *data_path, int option_mask);
    extern "C" void lws_uninit();
    extern "C" void *lws_create_segger(int option = 0xFFFF);
    extern "C" void lws_destroy_segger(void *segger);
    extern "C" bool lws_segment(void *segger, const char *text);
    extern "C" int lws_word_count(void *segger);
    extern "C" char *lws_get_word(void *segger, int idx);
    extern "C" char *lws_get_pos(void *segger, int idx);
    extern "C" int lws_get_position(void *segger, int idx);

};

#endif
